package com.ruoyi.warehouse.mapper;

import java.util.List;
import com.ruoyi.warehouse.domain.DrugWarehouse;
import org.apache.ibatis.annotations.Mapper;

/**
 * 药库Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-22
 */
@Mapper
public interface DrugWarehouseMapper 
{
    /**
     * 查询药库
     * 
     * @param warehouseId 药库主键
     * @return 药库
     */
    public DrugWarehouse selectDrugWarehouseByWarehouseId(Long warehouseId);

    /**
     * 查询药库列表
     * 
     * @param drugWarehouse 药库
     * @return 药库集合
     */
    public List<DrugWarehouse> selectDrugWarehouseList(DrugWarehouse drugWarehouse);

    /**
     * 新增药库
     * 
     * @param drugWarehouse 药库
     * @return 结果
     */
    public int insertDrugWarehouse(DrugWarehouse drugWarehouse);

    /**
     * 修改药库
     * 
     * @param drugWarehouse 药库
     * @return 结果
     */
    public int updateDrugWarehouse(DrugWarehouse drugWarehouse);

    /**
     * 删除药库
     * 
     * @param warehouseId 药库主键
     * @return 结果
     */
    public int deleteDrugWarehouseByWarehouseId(Long warehouseId);

    /**
     * 批量删除药库
     * 
     * @param warehouseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDrugWarehouseByWarehouseIds(Long[] warehouseIds);
}
